cmake_minimum_required(VERSION 2.6)


set(HEADERS
	include/vus/clip_base.h
	include/vus/clip_list.h
	include/vus/interpolator.h
	include/vus/keyframe.h
	include/vus/keyframed_property.h
	include/vus/keyframe_list.h
	include/vus/keyframe_range.h
	include/vus/private_includes.h
	include/vus/public_includes.h
	include/vus/track_base.h
	include/vus.h)

set(SOURCES
	src/clip_base.c
	src/clip_list.c
	src/interpolator.c
	src/keyframe.c
	src/keyframed_property.c
	src/keyframe_list.c
	src/keyframe_range.c
	src/track_base.c
	src/vus.c)

include_directories(include include/vus ${PROJECT_SOURCE_DIR}/extern/cex)

add_library(vus SHARED ${HEADERS} ${SOURCES})
set_target_properties(vus PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${VENTUS_LIBRARY_OUTPUT}" SOVERSION 1 COMPILE_DEFINITIONS VENTUS_COMPILE_LIB)

install(TARGETS vus DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include/vus)
